package com.example.demo.design.prototype;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 10:42 2021/4/9
 * @Modified By:
 */
public class Client {
    public static void main(String[] args) {
        WeeklyLog previous = new WeeklyLog();
        previous.setName("张无忌");
        previous.setDate("第十二周");
        previous.setContent("这周工作很忙，每天加班！");

        System.out.println("周报");
        System.out.println("周次：" + previous.getDate());
        System.out.println("姓名：" + previous.getName());
        System.out.println("内容：" + previous.getContent());
        System.out.println("--------------------------------");

        WeeklyLog newLog  = previous.clone();
        newLog.setDate("第十三周");
        System.out.println("周报");
        System.out.println("周次：" + newLog.getDate());
        System.out.println("姓名：" + newLog.getName());
        System.out.println("内容：" + newLog.getContent());
        System.out.println("--------------------------------");
    }
}
